home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
T-COMAL Today
/
(k)t5.d64
/
save'screen.proc
< prev
next >
Wrap
Text File
|
2007-02-28
|
1KB
|
55 lines
9000 // SAVE GRAPHICS SCREEN TO DISK
9010 // (C)1984 W. LOUIE 05/27/84
9020 //
9030 // WALLACE LOUIE
9040 // 3407 AVENUE 'S'
9050 // BROOKLYN, N.Y. 11234
9060 //
9070 //
9080 PROC SAVE'GRAPHICS'SCREEN(FILENAME$)
9090 DIM NAME$ OF 20
9100 NAME$:=FILENAME$+".HRG,W,PRG"
9110 OPEN FILE 1,NAME$,WRITE
9120 ML'SETUP
9130 PRINT FILE 1: CHR$(0)+CHR$(224),
9140 FOR ADDR:=57344 TO 65345 DO
9150 BIT'MAP'HI:=INT(ADDR/256)
9160 BIT'MAP'LO:=ADDR-BIT'MAP'HI*256
9170 POKE 839,BIT'MAP'LO
9180 POKE 840,BIT'MAP'HI
9190 SYS 828
9200 PRINT FILE 1: CHR$(PEEK(1000)),
9210 ENDFOR ADDR
9220 CLOSE FILE 1
9230 ENDPROC SAVE'GRAPHICS'SCREEN
9240 //
9250 //
9260 // MACHINE LANGUAGE SETUP ROUTINE
9270 //
9280 PROC ML'SETUP
9290 POKE 828,165 // LDA $01
9300 POKE 829,1
9310 POKE 830,141 // STA $0384 (900)
9320 POKE 831,132
9330 POKE 832,3
9340 POKE 833,120 // SEI
9350 POKE 834,73 // EOR #$07
9360 POKE 835,7
9370 POKE 836,133 // STA $01
9380 POKE 837,1
9390 POKE 838,173 // LDA
9400 // 839,BIT'MAP'LO
9410 // 840,BIT'MAP'HI
9420 POKE 841,141 // STA $03E8 (1000)
9430 POKE 842,232
9440 POKE 843,3
9450 POKE 844,173 // LDA $0384 (900)
9460 POKE 845,132
9470 POKE 846,3
9480 POKE 847,133 // STA $01
9490 POKE 848,1
9500 POKE 849,88 // CLI
9510 POKE 850,96 // RTS
9520 // 1000,RETRIEVED BYTE
9530 ENDPROC ML'SETUP